
#include "protothread.h"
#include "core/Core.h"

void protothread_OnInit()
{
}

void protothread_OnIdel()
{
}

UInt8 protothread_HandleEvent(UInt16 EventCode,stParam *pEventParam)
{
    switch (EventCode)
    {
        case EVENT_CORE_INIT:
            protothread_OnInit();
            break;
        case EVENT_CORE_IDLE:
            protothread_OnIdel();
            break;
        case EVENT_CORE_100MS:
            break;
        case EVENT_CORE_500MS:
            break;
        case EVENT_CORE_SEC:
            break;
        default:
            break;
    }
    
    return RET_EVENT_NEXT;
}

const stModuleInterface protothread_Interface = {
    (TfpCoreIntService)NULL,
    (TfpModuleEvent)protothread_HandleEvent,
};

